<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>集团电商</title>
    <!--common-->
    <link href="__CSS__/bootstrap.min.css" rel="stylesheet">

    <link rel="stylesheet" href="__CSS__/bootstrap-select.min.css">
</head>
<body class="sticky-header">
<div class="container" style="padding-top: 10px;">
    <div class="main-title">
        <h2>设置渠道专员负责的医院</h2>
    </div>

    <div id="auth_groups">
        <form class="form-horizontal" action="{:url('saveSetstates')}" method="post">
            <div class="form-group" style="font-weight: bold;">{$userinfo.username} 的医院授权</div>
            <!--<div class="form-group">-->
                <!--<div style="font-size: 16px;color: #9f191f">设置需要保密的状态</div>-->
                <!--{volist name="statedata" id="vo"}-->
                <!--<label class="checkbox-inline">-->
                    <!--<input class="hidstates" type="checkbox" name="baomi_states[]" value="{$vo.id}">{$vo.name}-->
                <!--</label>-->
                <!--{/volist}-->
            <!--</div>-->
            <div class="form-group">
                <div style="font-size: 16px;color: #9f191f">负责医院</div>
                <select name="own_yiyuan[]" class="form-control selectpickers" multiple >
                    {volist name='yiyuan' id='vo'}
                        <option value="{$vo.id}" {in name="vo.id" value="$userinfo['own_yiyuan']"}selected="selected"{/in} >{$vo.name}</option>
                    {/volist}
                </select>
            </div>
            <input type="hidden" name="id" value="{$userinfo.id}">
            <div style="margin-top: 10px;" class="form-group">
                <button type="submit" class="btn btn-success">确 定</button>
            </div>
        </form>
    </div>
    <!--body wrapper end-->
</div>

<script src="__JS__/jquery-2.2.3.min.js"></script>
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
<script type="text/javascript" src="__JS__/bootstrap-select.min.js"></script>
<script type="text/javascript">
    $(function () {
        $('.selectpickers').selectpicker();
    });
</script>

<!--<script type="text/javascript">-->
    <!--$(function(){-->
        <!--var hidstates = [{$userinfo.baomi_states}];-->
        <!--$('.hidstates').each(function(){-->
            <!--if( $.inArray( parseInt(this.value,10),hidstates )>-1 ){-->
                <!--$(this).prop('checked',true);-->
            <!--}-->
        <!--});-->
    <!--});-->
<!--</script>-->

</body>
</html>